﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class shangdian:NPC 
    {
        private string wupin;

        public string Wupin
        {
            get => wupin; set => wupin = value;
        }
        public shangdian(string name, NPCleixing leixing, string wupin) : base(name, leixing)
        {
            this.Wupin = wupin;
        }

        public override void Speak()
        {
            Console.WriteLine("选择你要购买的类型： 物品：{0}",  this.wupin);
            Console.WriteLine("NPC：{0}",base.name1);
        }
    }
}
